﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 购物车实体类
	/// </summary>
	public class ShoppingCart:BaseEntity
	{
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId { get; set; }
		/// <summary>
		/// 用户ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string UserId { get; set; }
		/// <summary>
		/// 购物数量
		/// </summary>
		public int Num { get; set; }
		/// <summary>
		/// 加入购物车时间
		/// </summary>
		public DateTime AddTime { get; set; }
	}
}
